package homework;

public class ThrowDemo {
    public static void main(String[] args) {
        Student1 zs = new Student1();
        try {
            zs.setAge(200);
            System.out.println("这个人的年龄是" + zs.getAge() + "岁");
        } catch (RuntimeException e) {
            System.out.println("年龄不对劲！");
        }
    }
}
